package vues;

import java.awt.Graphics;
import java.awt.Image;
import java.awt.image.ImageObserver;
import java.awt.image.ImageProducer;
import java.lang.reflect.InvocationTargetException;

import javax.imageio.ImageIO;
import javax.swing.SwingUtilities;

import modele.entites.TypeBot;
import controleur.Horloge;
import controleur.Simulateur;


public class StartIHM {

	public static void main(String[] args) { 
		try {
			SwingUtilities.invokeAndWait(new Runnable() {
				public void run() {
					Simulateur s = new Simulateur();
					Horloge h = new Horloge(s);
					IHM ihm = new IHM(h);
					s.setIhm(ihm);
					ihm.setVisible(true);
					
				}
			}
			);
		} catch (InvocationTargetException | InterruptedException e) {
			e.printStackTrace();
		}	
	}
}
